.class public Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "RotateVideoActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private m:Les/cd;

.field private final n:[Ljava/lang/String;

.field private o:Landroid/view/View;

.field private p:Landroid/view/View;

.field private q:I

.field private r:I

.field private s:I

.field private t:Landroid/graphics/RectF;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "CropRender"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    .line 2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->n:[Ljava/lang/String;

    .line 3
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->q:I

    .line 4
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->r:I

    .line 5
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    return-void
.end method

.method private I()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;)V

    return-void
.end method

.method private J()V
    .locals 1

    .line 1
    sget v0, Les/x4;->rotate_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->o:Landroid/view/View;

    .line 2
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 3
    sget v0, Les/x4;->preview_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->p:Landroid/view/View;

    .line 4
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private K()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->L()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->M()V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->N()V

    return-void
.end method

.method private L()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v1, v0, Les/cd;->g:Les/cd$c;

    if-nez v1, :cond_0

    return-void

    .line 2
    :cond_0
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->q:I

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->r:I

    if-le v1, v2, :cond_1

    const/4 v1, 0x0

    .line 3
    iput-object v1, v0, Les/cd;->g:Les/cd$c;

    .line 4
    sget v0, Les/z4;->durec_remove_background_warn:I

    invoke-static {v0}, Les/ec;->a(I)V

    :cond_1
    return-void
.end method

.method private M()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->e:Les/cd$q;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, v0, Les/cd$q;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->q:I

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->r:I

    invoke-static {p0, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/r;->a(Landroid/content/Context;Ljava/util/List;II)V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->l:Les/cd$k;

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, v0, Les/cd$k;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->q:I

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->r:I

    invoke-static {p0, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/k;->a(Landroid/content/Context;Ljava/util/List;II)V

    :cond_1
    return-void
.end method

.method private N()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->f:Les/cd$e;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v1, v0, Les/cd$e;->a:Les/cd$g;

    .line 3
    iget-object v0, v0, Les/cd$e;->b:Les/cd$g;

    if-nez v1, :cond_1

    if-nez v0, :cond_1

    return-void

    :cond_1
    if-eqz v1, :cond_2

    .line 4
    iget-boolean v0, v1, Les/cd$g;->l:Z

    goto :goto_0

    .line 5
    :cond_2
    iget-boolean v0, v0, Les/cd$g;->l:Z

    .line 6
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->g:Les/cd$c;

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_3

    if-eqz v0, :cond_5

    :goto_1
    const/4 v2, 0x1

    goto :goto_3

    .line 7
    :cond_3
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->q:I

    .line 8
    iget v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->r:I

    if-ge v1, v4, :cond_4

    const/4 v1, 0x1

    goto :goto_2

    :cond_4
    const/4 v1, 0x0

    :goto_2
    xor-int/2addr v0, v1

    if-eqz v0, :cond_5

    goto :goto_1

    :cond_5
    :goto_3
    if-eqz v2, :cond_6

    .line 9
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->c()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->f:Les/cd$e;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a(Les/cd$e;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd;->f:Les/cd$e;

    .line 11
    sget v0, Les/z4;->durec_edit_intro_and_outro_invalid:I

    invoke-static {v0}, Les/ec;->a(I)V

    :cond_6
    return-void
.end method

.method private O()V
    .locals 6

    .line 1
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v1

    .line 2
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->a(Les/cd;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->n:[Ljava/lang/String;

    array-length v2, v0

    add-int/lit8 v2, v2, 0x1

    invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, [Ljava/lang/String;

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->n:[Ljava/lang/String;

    array-length v0, v0

    const-string v3, "RotateRender"

    aput-object v3, v2, v0

    const/4 v3, 0x1

    const-string v4, "rotate"

    const/16 v5, 0xe

    move-object v0, p0

    .line 5
    invoke-static/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditPreviewActivity;->a(Landroid/app/Activity;Les/cd;[Ljava/lang/String;ILjava/lang/String;I)V

    return-void
.end method

.method private P()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->C()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->a(Les/cd;)V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->K()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    invoke-static {v0}, Les/dd;->a(Les/cd;)V

    .line 5
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->q:I

    return p1
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 10
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 11
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 12
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 13
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Les/cd;)V
    .locals 2

    .line 3
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 4
    iput-object v0, p1, Les/cd;->h:Les/cd$n;

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p1, Les/cd;->h:Les/cd$n;

    if-nez v0, :cond_1

    .line 6
    new-instance v0, Les/cd$n;

    invoke-direct {v0}, Les/cd$n;-><init>()V

    iput-object v0, p1, Les/cd;->h:Les/cd$n;

    .line 7
    :cond_1
    iget-object v0, p1, Les/cd;->h:Les/cd$n;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    iput v1, v0, Les/cd$n;->a:I

    .line 8
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->t:Landroid/graphics/RectF;

    if-eqz v0, :cond_2

    .line 9
    iget-object p1, p1, Les/cd;->i:Les/cd$d;

    iget-object p1, p1, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-virtual {p1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V

    :cond_2
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->r:I

    return p1
.end method


# virtual methods
.method protected C()Z
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->h:Les/cd$n;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-nez v0, :cond_1

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1

    .line 3
    :cond_1
    iget v0, v0, Les/cd$n;->a:I

    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    if-eq v0, v3, :cond_2

    goto :goto_1

    :cond_2
    const/4 v1, 0x0

    :goto_1
    return v1
.end method

.method protected F()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->P()V

    return-void
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->n:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method protected c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(IZ)Landroid/graphics/RectF;

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->t:Landroid/graphics/RectF;

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setCropRect(Landroid/graphics/RectF;)V

    :cond_0
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    const/4 p3, 0x1

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->P()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    .line 2
    sget v0, Les/x4;->rotate_btn:I

    if-ne p1, v0, :cond_1

    .line 3
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    add-int/lit8 p1, p1, 0x5a

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    const/16 v0, 0x168

    const/4 v1, 0x0

    if-lt p1, v0, :cond_0

    .line 4
    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    .line 5
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object p1

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    invoke-virtual {p1, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(IZ)Landroid/graphics/RectF;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->t:Landroid/graphics/RectF;

    goto :goto_0

    .line 6
    :cond_1
    sget v0, Les/x4;->preview_btn:I

    if-ne p1, v0, :cond_2

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->O()V

    :cond_2
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    sget p1, Les/y4;->durec_video_edit_rotate_video_layout:I

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->h(I)V

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->J()V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->I()V

    .line 6
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    .line 7
    iget-object v0, p1, Les/cd;->h:Les/cd$n;

    if-eqz v0, :cond_1

    .line 8
    iget p1, v0, Les/cd$n;->a:I

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->s:I

    goto :goto_0

    .line 9
    :cond_1
    new-instance v0, Les/cd$n;

    invoke-direct {v0}, Les/cd$n;-><init>()V

    iput-object v0, p1, Les/cd;->h:Les/cd$n;

    .line 10
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object p1, p1, Les/cd;->i:Les/cd$d;

    if-eqz p1, :cond_2

    iget-object p1, p1, Les/cd$d;->a:Landroid/graphics/RectF;

    if-eqz p1, :cond_2

    .line 11
    new-instance p1, Landroid/graphics/RectF;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->i:Les/cd$d;

    iget-object v0, v0, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-direct {p1, v0}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/rotate/RotateVideoActivity;->t:Landroid/graphics/RectF;

    :cond_2
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "GAConstants.SCREEN_VIDEO_EDIT_ROTATE"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_ok:I

    return v0
.end method

.method protected y()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_rotate:I

    return v0
.end method
